meson: only update-icon-cache when the demos are built
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sun, 9 Jan 2022 07:27:59 +0000 (07:27 +0000)
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sun, 9 Jan 2022 07:27:59 +0000 (07:27 +0000)
commited3d9aaaed9c3ed491ed61273de10f6a4a86f663
treea1f4b052c8a07335394077108067795419a83292
parent27a3998c8fbeabc82634d7812338df61f356b00f
meson: only update-icon-cache when the demos are built

Without building the demos, nothing gets installed into $prefix/share/icons/hicolor. Which makes running
`gtk4-update-icon-cache` on the machine causes an error. This is easily reproducible on a Windows machine with MSVC where
there is nothing pre-installed on hicolor icon theme and that makes building gtk without the demos fails with "No such file or directory".
meson.build